package com.chalk.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 平台用户信息(SystemUser)实体类
 *
 * @author maxiaoqiang
 * @since 2019-03-22 17:35:28
 */
@ApiModel(value = "SystemUser", description = "平台用户信息")
@Data
@TableName("t_system_user")
public class SystemUser {

    /**
     * 主键
     */
    @ApiModelProperty(name = "id", value = "主键")
    @TableId(type = IdType.ID_WORKER_STR)
    private String id;


    /**
     * 用户名
     */
    @ApiModelProperty(name = "userName", value = "用户名")
    @TableField("user_name")
    private String userName;

    /**
     * 密码
     */
    @ApiModelProperty(name = "password", value = "密码")
    @TableField("password")
    private String password;

    /**
     * 手机号
     */
    @ApiModelProperty(name = "phone", value = "手机号")
    @TableField("phone")
    private String phone;

    /**
     * 姓名
     */
    @ApiModelProperty(name = "name", value = "姓名")
    @TableField("name")
    private String name;

    /**
     * 头像
     */
    @ApiModelProperty(name = "avatar", value = "头像")
    @TableField("avatar")
    private String avatar;

    /**
     * 所属单位(ID)
     */
    @ApiModelProperty(name = "unitId", value = "所属单位(ID)")
    @TableField("unit_id")
    private String unitId;

    /**
     * 创建时间
     */
    @ApiModelProperty(name = "createTime", value = "创建时间")
    @TableField("create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @ApiModelProperty(name = "updateTime", value = "修改时间")
    @TableField("update_time")
    private Date updateTime;


    @ApiModelProperty(name = "operatorType", value = "操作人类型（0、系统自动操作，1、平台人员操作，2、商家人员操作，3、会员操作） ")
    @TableField("operator_type")
    private Integer operatorType;

    @ApiModelProperty(name = "operatorId", value = "操作人id（根据操作人类型会对应不同的表记录）")
    @TableField("operator_id")
    private String operatorId;

    /**
     * 删除标识(1 未删除  2 已删除)
     */
    @ApiModelProperty(name = "isDeleted", value = "删除标识(0 未删除  1 已删除)")
    @TableField("is_deleted")
    private Integer isDeleted;

}